X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0ec937fd42be7f1d3757eba48fa944627dfe591d..c592128fda794f2679a117a881c2f7d86ae091e0:/tools/sync-users/sync-users_test.go diff --git a/tools/sync-users/sync-users_test.go b/tools/sync-users/sync-users_test.go index 1e5f688b05..e5cbb77d16 100644 --- a/tools/sync-users/sync-users_test.go +++ b/tools/sync-users/sync-users_test.go @@ -102,7 +102,7 @@ func (s *TestSuite) TestParseFlagsWithoutPositionalArgument(c *C) { } func (s *TestSuite) TestParseFlagsWrongUserID(c *C) { - os.Args = []string{"cmd", "-user-id=nickname", "/tmp/somefile.csv"} + os.Args = []string{"cmd", "-user-id", "nickname", "/tmp/somefile.csv"} err := ParseFlags(&ConfigParams{}) c.Assert(err, NotNil) c.Assert(err, ErrorMatches, ".*user ID must be one of:.*") @@ -122,7 +122,7 @@ func (s *TestSuite) TestParseFlagsWithPositionalArgument(c *C) { func (s *TestSuite) TestParseFlagsWithOptionalFlags(c *C) { cfg := ConfigParams{} - os.Args = []string{"cmd", "-verbose", "-deactivate-unlisted", "-user-id=username", "/tmp/somefile.csv"} + os.Args = []string{"cmd", "-verbose", "-deactivate-unlisted", "-user-id", "username", "/tmp/somefile.csv"} err := ParseFlags(&cfg) c.Assert(err, IsNil) c.Assert(cfg.Path, Equals, "/tmp/somefile.csv")