Skip to content

Commit

Permalink
tests: modify TestNewFlags for flags without default value
Browse files Browse the repository at this point in the history
Signed-off-by: Bin Tang <tangbin.bin@bytedance.com>
  • Loading branch information
sctb512 committed Feb 24, 2023
1 parent ad421ae commit c2776d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/containerd-nydus-grpc/pkg/command/flags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestNewFlags(t *testing.T) {
err := i.Apply(set)
assert.Nil(t, err)
}
err := set.Parse([]string{"--config-path", "/etc/testconfig", "--root", "/root"})
err := set.Parse([]string{"--config-path", "/etc/testconfig", "--root", "/root", "--log-level", "info"})
assert.Nil(t, err)
assert.Equal(t, flags.Args.NydusdConfigPath, "/etc/testconfig")
assert.Equal(t, flags.Args.LogLevel, "info")
Expand Down

0 comments on commit c2776d2

Please sign in to comment.