diff options
author | Saturnino Abril <saturnino.abril@gmail.com> | 2017-06-15 05:29:05 +0800 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-06-14 14:29:05 -0700 |
commit | 5b017171cd42872a11a9c8b3e2e8bb9bd29c2b3a (patch) | |
tree | 748f6f88e607303ac5d3a87db814add4d3a70e32 /api4/websocket_test.go | |
parent | 1138dd67705829a6af0d6c610cf3dbe09082187c (diff) | |
download | chat-5b017171cd42872a11a9c8b3e2e8bb9bd29c2b3a.tar.gz chat-5b017171cd42872a11a9c8b3e2e8bb9bd29c2b3a.tar.bz2 chat-5b017171cd42872a11a9c8b3e2e8bb9bd29c2b3a.zip |
add stop server to API 4 tests (#6638)
Diffstat (limited to 'api4/websocket_test.go')
-rw-r--r-- | api4/websocket_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/api4/websocket_test.go b/api4/websocket_test.go index 1098f4759..5266e30a2 100644 --- a/api4/websocket_test.go +++ b/api4/websocket_test.go @@ -71,3 +71,12 @@ func TestWebSocket(t *testing.T) { } } } + +func TestZZWebSocketTearDown(t *testing.T) { + // *IMPORTANT* - Kind of hacky + // This should be the last function in any test file + // that calls Setup() + // Should be in the last file too sorted by name + time.Sleep(2 * time.Second) + StopServer() +} |