Skip to content

Commit 4c4de60

Browse files
committed
test(config_test.go): update test case for empty attestation subnet config to expect non-nil config with disabled state instead of nil
1 parent 893305b commit 4c4de60

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

cmd/sentry/config_test.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -668,12 +668,14 @@ func TestAttestationSubnetConfigOverride(t *testing.T) {
668668
expectedMax: 15,
669669
},
670670
{
671-
name: "No config when nothing set",
672-
envEnabled: "",
673-
envMaxSubnets: "",
674-
cliEnabled: false,
675-
cliMaxSubnets: -1,
676-
expectNil: true,
671+
name: "No config when nothing set",
672+
envEnabled: "",
673+
envMaxSubnets: "",
674+
cliEnabled: false,
675+
cliMaxSubnets: -1,
676+
expectNil: false,
677+
expectedEnabled: false,
678+
expectedMax: 0,
677679
},
678680
}
679681

0 commit comments

Comments
 (0)