Skip to content

Commit

Permalink
fix: server unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasKocman committed Aug 15, 2022
1 parent b699fe2 commit ba8ec4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions http/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func TestServer_Start(t *testing.T) {
signalsListener: make(chan os.Signal, 1),
waitForShutdown: make(chan struct{}, 1),
doBeforeShutdown: []ServerHookFunc{},
shutdownTimeout: &defaultShutdownTimeout,
},
wantErr: nil,
},
Expand All @@ -133,6 +134,7 @@ func TestServer_Start(t *testing.T) {
signalsListener: make(chan os.Signal, 1),
waitForShutdown: make(chan struct{}, 1),
doBeforeShutdown: []ServerHookFunc{},
shutdownTimeout: &defaultShutdownTimeout,
},
wantErr: nil,
},
Expand All @@ -148,6 +150,7 @@ func TestServer_Start(t *testing.T) {
server: &http.Server{},
signalsListener: make(chan os.Signal, 1),
waitForShutdown: make(chan struct{}, 1),
shutdownTimeout: &defaultShutdownTimeout,
doBeforeShutdown: []ServerHookFunc{
func(_ context.Context) {
<-time.After(time.Millisecond * 200)
Expand Down

0 comments on commit ba8ec4d

Please sign in to comment.