thar we GO
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user