Move server tests to the server command
This commit is contained in:
parent
3bfbe38837
commit
bc366583a4
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
package server
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
@ -6,13 +6,14 @@ import (
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/mdiluz/rove/pkg/rove"
|
"github.com/mdiluz/rove/pkg/rove"
|
||||||
|
"github.com/mdiluz/rove/pkg/server"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
var serv rove.Server = "localhost:8080"
|
var serv rove.Server = "localhost:8080"
|
||||||
|
|
||||||
func TestMain(m *testing.M) {
|
func TestMain(m *testing.M) {
|
||||||
s := NewServer(OptionPort(8080))
|
s := server.NewServer(server.OptionPort(8080))
|
||||||
s.Initialise()
|
s.Initialise()
|
||||||
go s.Run()
|
go s.Run()
|
||||||
|
|
Loading…
Add table
Reference in a new issue