(t *testing.T)
| 41 | _, stderr, code := hey(t, "auth", "refresh") |
| 42 | if code != 0 { |
| 43 | t.Fatalf("auth refresh failed (exit %d): %s", code, stderr) |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | func TestAuthLogoutAndRelogin(t *testing.T) { |
| 48 | // Logout |
| 49 | heyOK(t, "auth", "logout") |
| 50 | |
| 51 | // Verify we're logged out. |