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) {
124124 mux.ServeHTTP(responseRecorder, request)
125125
126126 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" {
128128 t.Errorf("Have Location %s, want checkout", loc)
129129 }
130130 if responseRecorder.Code != http.StatusMovedPermanently {
+2, -0
......@@ -203,9 +203,11 @@ func TestRegisterUser_Success(t *testing.T) {
203203 user, err := testDB.RegisterUser("testuser", "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI testkey", "test comment")
204204 if err != nil {
205205 t.Fatalf("RegisterUser failed: %v", err)
206+ return
206207 }
207208 if user == nil {
208209 t.Fatal("expected user, got nil")
210+ return
209211 }
210212 if user.Name != "testuser" {
211213 t.Errorf("expected name 'testuser', got '%s'", user.Name)