thar we GO

This commit is contained in:
Bel LaPointe
2025-04-25 09:42:24 -06:00
parent 031d5f545d
commit 0c5bb025bb
6 changed files with 112 additions and 17 deletions

View File

@@ -3,6 +3,7 @@ package main_test
import (
"context"
main "show-rss"
"show-rss/src/db"
"testing"
"time"
)
@@ -11,7 +12,7 @@ func TestMain(t *testing.T) {
ctx, can := context.WithTimeout(context.Background(), 2*time.Second)
defer can()
if err := main.Main(ctx); err != nil && ctx.Err() == nil {
if err := main.Main(db.Test(t, ctx)); err != nil && ctx.Err() == nil {
t.Fatal(err)
}
}