fix unit tests

This commit is contained in:
Evan Jarrett
2025-10-30 22:33:07 -05:00
parent d4b9d84df1
commit 5a41f876ff
4 changed files with 3 additions and 26 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ type Push struct {
IconURL string
StarCount int
PullCount int
IsStarred bool // Whether the current user has starred this repository
IsStarred bool // Whether the current user has starred this repository
CreatedAt time.Time
HoldEndpoint string // Hold endpoint for health checking
Reachable bool // Whether the hold endpoint is reachable
-12
View File
@@ -1,12 +0,0 @@
package jetstream
import "testing"
func TestBackfillWorker_Struct(t *testing.T) {
backfiller := &BackfillWorker{}
if backfiller == nil {
t.Error("Expected non-nil backfiller")
}
}
// TODO: Add backfill tests with mocked ATProto client
-13
View File
@@ -1,13 +0,0 @@
package jetstream
import "testing"
func TestWorker_Struct(t *testing.T) {
// Simple struct test
worker := &Worker{}
if worker == nil {
t.Error("Expected non-nil worker")
}
}
// TODO: Add WebSocket connection tests with mock server
+2
View File
@@ -562,6 +562,7 @@ func TestTemplateExecution_RepoCard(t *testing.T) {
Description string
StarCount int
PullCount int
IsStarred bool
}{
OwnerHandle: "alice.bsky.social",
Repository: "myapp",
@@ -569,6 +570,7 @@ func TestTemplateExecution_RepoCard(t *testing.T) {
Description: "A cool container image",
StarCount: 42,
PullCount: 1337,
IsStarred: true,
}
buf := new(bytes.Buffer)