ws and pruner done!!!

This commit is contained in:
41666 2024-10-28 13:46:52 -07:00
parent c5cc245e25
commit 74add408e6
34 changed files with 1455 additions and 221 deletions

23
store/env_test.go Normal file
View file

@ -0,0 +1,23 @@
package store_test
import (
"context"
"database/sql"
"testing"
"time"
"github.com/genudine/saerro-go/util/testutil"
)
func mkEnv(t *testing.T) (context.Context, *sql.DB) {
t.Helper()
db := testutil.GetTestDB(t)
ctx, cancel := context.WithTimeout(context.Background(), time.Second*30)
t.Cleanup(func() {
cancel()
})
return ctx, db
}