Browse Source

check error in router_test

Darien Raymond 9 năm trước cách đây
mục cha
commit
58c84bea21
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      testing/scenarios/router_test.go

+ 1 - 0
testing/scenarios/router_test.go

@@ -63,6 +63,7 @@ func TestRouter(t *testing.T) {
 		IP:   []byte{127, 0, 0, 1},
 		Port: int(50022),
 	})
+	assert.Error(err).IsNil()
 
 	payload = "blocked dokodemo request."
 	nBytes, err = conn.Write([]byte(payload))