Skip to content

Commit

Permalink
Update server/embed/config_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Wang <[email protected]>
  • Loading branch information
henrybear327 and ahrtr authored Feb 13, 2025
1 parent 31ab967 commit 68bb391
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/embed/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,7 @@ func TestSetMemberLocalAddrValidate(t *testing.T) {
cfg := *NewConfig()
cfg.ServerFeatureGate.(featuregate.MutableFeatureGate).Set(tc.serverFeatureGates)
err := cfg.Validate()
if (err != nil) != tc.expectError {
t.Errorf("config.Validate() = %q, expected error: %v", err, tc.expectError)
}
require.NoError(t, err)
})
}
}
Expand Down

0 comments on commit 68bb391

Please sign in to comment.