Skip to content

Commit 9967f32

Browse files
Update internal/integrationtest/board/board_test.go
Co-authored-by: Cristian Maglie <[email protected]>
1 parent 962591f commit 9967f32

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: internal/integrationtest/board/board_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ func TestBoardList(t *testing.T) {
4242
stdout, _, err := cli.Run("board", "list", "--format", "json")
4343
require.NoError(t, err)
4444
// check is a valid json and contains a list of ports
45-
requirejson.Query(t, stdout, ".[] | .port | .protocol!=\"\"", "true")
46-
requirejson.Query(t, stdout, ".[] | .port | .protocol_label!=\"\"", "true")
45+
requirejson.Parse(t, stdout).
46+
Query(`[ .[].port | select(.protocol == null or .protocol_label == null) ]`).
47+
MustBeEmpty()
4748
}
4849

4950
func TestBoardListWithInvalidDiscovery(t *testing.T) {

0 commit comments

Comments
 (0)