Skip to content

Commit

Permalink
chore: add some test additional checks
Browse files Browse the repository at this point in the history
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
  • Loading branch information
rustatian committed Sep 5, 2024
1 parent 5af38c0 commit 1ea2498
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/configs/.rr-broken-pipes.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'

rpc:
listen: tcp://127.0.0.1:6002
listen: tcp://127.0.0.1:6666

server:
command: "php php_test_files/http/client.php broken pipes"
Expand Down
4 changes: 4 additions & 0 deletions tests/http_plugin3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,7 @@ func TestMTLS1(t *testing.T) {

r, err := client.Do(req)
assert.NoError(t, err)
require.NotNil(t, r)

b, err := io.ReadAll(r.Body)
assert.NoError(t, err)
Expand Down Expand Up @@ -792,6 +793,7 @@ func TestMTLS2(t *testing.T) {

r, err := client.Do(req)
assert.NoError(t, err)
require.NotNil(t, r)

b, err := io.ReadAll(r.Body)
assert.NoError(t, err)
Expand Down Expand Up @@ -884,6 +886,7 @@ func TestMTLS3(t *testing.T) {

r, err := client.Do(req)
assert.NoError(t, err)
require.NotNil(t, r)

b, err := io.ReadAll(r.Body)
assert.NoError(t, err)
Expand Down Expand Up @@ -976,6 +979,7 @@ func TestMTLS4(t *testing.T) {

r, err := client.Do(req)
assert.NoError(t, err)
require.NotNil(t, r)

b, err := io.ReadAll(r.Body)
assert.NoError(t, err)
Expand Down
1 change: 1 addition & 0 deletions tests/http_plugin4_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ func http3ResponseMatcher(t *testing.T) {

r, err := client.Do(req)
assert.NoError(t, err)
require.NotNil(t, r)

b, err := io.ReadAll(r.Body)
assert.NoError(t, err)
Expand Down
5 changes: 4 additions & 1 deletion tests/http_plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ func sslEcho(t *testing.T) {

r, err := client.Do(req)
assert.NoError(t, err)
require.NotNil(t, r)

b, err := io.ReadAll(r.Body)
assert.NoError(t, err)
Expand Down Expand Up @@ -665,7 +666,8 @@ func sslRedirect(t *testing.T) {

r, err := client.Do(req)
assert.NoError(t, err)
assert.NotNil(t, r.TLS)
require.NotNil(t, r)
require.NotNil(t, r.TLS)

b, err := io.ReadAll(r.Body)
assert.NoError(t, err)
Expand Down Expand Up @@ -764,6 +766,7 @@ func sslPush(t *testing.T) {

r, err := client.Do(req)
assert.NoError(t, err)
require.NotNil(t, r)

assert.NotNil(t, r.TLS)

Expand Down

0 comments on commit 1ea2498

Please sign in to comment.