Skip to content

Commit

Permalink
fix: server test
Browse files Browse the repository at this point in the history
  • Loading branch information
amirhnajafiz committed Oct 12, 2022
1 parent aad642b commit 6e7d968
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@ import (
func TestServer(t *testing.T) {
go func() {
if err := stallion.NewServer(":6000"); err != nil {
t.Errorf("server failed to start: %w", err)
t.Errorf("server failed to start: %v", err)
}
}()

c, err := stallion.NewClient("localhost:6000")
if err == nil {
t.Error(err)
}

c, err = stallion.NewClient("st://localhost:6000")
if err != nil {
t.Error(err)
}
Expand All @@ -26,4 +31,4 @@ func TestServer(t *testing.T) {
if err != nil {
t.Error(err)
}
}
}

0 comments on commit 6e7d968

Please sign in to comment.