mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-19 09:49:02 +00:00
Initial commit
This commit is contained in:
20
test/main_test.go
Normal file
20
test/main_test.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"src/task_tracker/api"
|
||||
"src/task_tracker/config"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
|
||||
config.SetupConfig()
|
||||
|
||||
testApi := api.New()
|
||||
testApi.Database.Reset()
|
||||
go testApi.Run()
|
||||
|
||||
time.Sleep(time.Millisecond * 100)
|
||||
m.Run()
|
||||
}
|
||||
Reference in New Issue
Block a user