repos / pico

pico services mono repo
git clone https://github.com/picosh/pico.git

commit
9658c7d
parent
78362a0
author
Eric Bower
date
2025-12-25 15:08:05 -0500 EST
fix: tests
2 files changed,  +3, -1
M pkg/apps/auth/api_test.go
+1, -1
1@@ -124,7 +124,7 @@ func TestCheckout(t *testing.T) {
2 	mux.ServeHTTP(responseRecorder, request)
3 
4 	loc := responseRecorder.Header().Get("Location")
5-	if loc != "https://checkout.pico.sh/buy/73c26cf9-3fac-44c3-b744-298b3032a96b?discount=0&checkout[custom][username]=user-a" {
6+	if loc != "https://picosh.lemonsqueezy.com/buy/73c26cf9-3fac-44c3-b744-298b3032a96b?discount=0&checkout[custom][username]=user-a" {
7 		t.Errorf("Have Location %s, want checkout", loc)
8 	}
9 	if responseRecorder.Code != http.StatusMovedPermanently {
M pkg/db/postgres/storage_test.go
+2, -0
 1@@ -203,9 +203,11 @@ func TestRegisterUser_Success(t *testing.T) {
 2 	user, err := testDB.RegisterUser("testuser", "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI testkey", "test comment")
 3 	if err != nil {
 4 		t.Fatalf("RegisterUser failed: %v", err)
 5+		return
 6 	}
 7 	if user == nil {
 8 		t.Fatal("expected user, got nil")
 9+		return
10 	}
11 	if user.Name != "testuser" {
12 		t.Errorf("expected name 'testuser', got '%s'", user.Name)