diff --git a/pkg/server/api_test.go b/cmd/rove-server/api_test.go similarity index 96% rename from pkg/server/api_test.go rename to cmd/rove-server/api_test.go index 2ff3a89..79431e7 100644 --- a/pkg/server/api_test.go +++ b/cmd/rove-server/api_test.go @@ -1,4 +1,4 @@ -package server +package main import ( "os" @@ -6,13 +6,14 @@ import ( "github.com/google/uuid" "github.com/mdiluz/rove/pkg/rove" + "github.com/mdiluz/rove/pkg/server" "github.com/stretchr/testify/assert" ) var serv rove.Server = "localhost:8080" func TestMain(m *testing.M) { - s := NewServer(OptionPort(8080)) + s := server.NewServer(server.OptionPort(8080)) s.Initialise() go s.Run()