Skip to content

Commit a2e88a1

Browse files
committed
test: tidy websocket test
1 parent 7c9b51d commit a2e88a1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/mist_test.gleam

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import gleam/erlang/process
22
import gleam/http/request
33
import gleam/int
4-
import gleam/io
54
import gleam/option.{None}
65
import gleam/otp/actor
76
import gleeunit/should
@@ -11,10 +10,10 @@ import wisp
1110
import wisp/wisp_mist
1211

1312
/// Create a websocket server and client
14-
/// Websocket sends hello on connect
15-
/// Client responsed ping
16-
/// server responsed pong
17-
/// client successfully closes itself
13+
/// - Websocket sends hello on connect
14+
/// - Client responsed ping
15+
/// - Server responsed pong
16+
/// - Client successfully closes itself
1817
pub fn websocket_test() {
1918
let subj = process.new_subject()
2019
let assert Ok(_) = webserver()
@@ -58,7 +57,6 @@ fn webserver() {
5857
|> mist.new
5958
|> mist.port(8000)
6059
|> mist.start_http
61-
|> io.debug
6260
}
6361

6462
type Context {

0 commit comments

Comments
 (0)