Commit 9658c7d
Eric Bower
·
2025-12-25 15:08:05 -0500 EST
parent 78362a0
fix: tests
2 files changed,
+3,
-1
+1,
-1
| ... | ... | @@ -124,7 +124,7 @@ func TestCheckout(t *testing.T) { | |
| 124 | 124 | mux.ServeHTTP(responseRecorder, request) | |
| 125 | 125 | ||
| 126 | 126 | loc := responseRecorder.Header().Get("Location") | |
| 127 | - | if loc != "https://checkout.pico.sh/buy/73c26cf9-3fac-44c3-b744-298b3032a96b?discount=0&checkout[custom][username]=user-a" { | |
| 127 | + | if loc != "https://picosh.lemonsqueezy.com/buy/73c26cf9-3fac-44c3-b744-298b3032a96b?discount=0&checkout[custom][username]=user-a" { | |
| 128 | 128 | t.Errorf("Have Location %s, want checkout", loc) | |
| 129 | 129 | } | |
| 130 | 130 | if responseRecorder.Code != http.StatusMovedPermanently { |
+2,
-0
| ... | ... | @@ -203,9 +203,11 @@ func TestRegisterUser_Success(t *testing.T) { | |
| 203 | 203 | user, err := testDB.RegisterUser("testuser", "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI testkey", "test comment") | |
| 204 | 204 | if err != nil { | |
| 205 | 205 | t.Fatalf("RegisterUser failed: %v", err) | |
| 206 | + | return | |
| 206 | 207 | } | |
| 207 | 208 | if user == nil { | |
| 208 | 209 | t.Fatal("expected user, got nil") | |
| 210 | + | return | |
| 209 | 211 | } | |
| 210 | 212 | if user.Name != "testuser" { | |
| 211 | 213 | t.Errorf("expected name 'testuser', got '%s'", user.Name) |