Skip to content

Commit

Permalink
rm parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
leohhhn committed Jan 17, 2025
1 parent b333429 commit 091bd8a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
17 changes: 0 additions & 17 deletions examples/gno.land/r/sys/users/store_test.gno
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ func TestRegister(t *testing.T) {
std.TestSetOrigCaller(whitelistedCallerAddr)

t.Run("valid_registration", func(t *testing.T) {
t.Parallel()

urequire.NoError(t, RegisterUser(alice, aliceAddr))

res, isLatest := ResolveName(alice)
Expand All @@ -37,7 +35,6 @@ func TestRegister(t *testing.T) {
})

t.Run("invalid_inputs", func(t *testing.T) {
t.Parallel()
cleanStore(t)

uassert.ErrorContains(t, RegisterUser(" ", aliceAddr), ErrEmptyUsername.Error())
Expand All @@ -51,7 +48,6 @@ func TestRegister(t *testing.T) {
})

t.Run("addr_already_registered", func(t *testing.T) {
t.Parallel()
cleanStore(t)

urequire.NoError(t, RegisterUser(alice, aliceAddr))
Expand All @@ -61,7 +57,6 @@ func TestRegister(t *testing.T) {
})

t.Run("name_taken", func(t *testing.T) {
t.Parallel()
cleanStore(t)

urequire.NoError(t, RegisterUser(alice, aliceAddr))
Expand All @@ -71,7 +66,6 @@ func TestRegister(t *testing.T) {
})

t.Run("user_deleted", func(t *testing.T) {
t.Parallel()
cleanStore(t)

urequire.NoError(t, RegisterUser(alice, aliceAddr))
Expand All @@ -82,7 +76,6 @@ func TestRegister(t *testing.T) {
})

t.Run("address_lookalike", func(t *testing.T) {
t.Parallel()
cleanStore(t)

// Address as username
Expand All @@ -96,15 +89,13 @@ func TestRegister(t *testing.T) {
func TestUpdateName(t *testing.T) {
std.TestSetOrigCaller(whitelistedCallerAddr)
t.Run("valid_direct_alias", func(t *testing.T) {
t.Parallel()
cleanStore(t)

urequire.NoError(t, RegisterUser(alice, aliceAddr))
uassert.NoError(t, UpdateName("alice1", aliceAddr))
})

t.Run("valid_double_alias", func(t *testing.T) {
t.Parallel()
cleanStore(t)

urequire.NoError(t, RegisterUser(alice, aliceAddr))
Expand All @@ -113,22 +104,19 @@ func TestUpdateName(t *testing.T) {
})

t.Run("name_taken", func(t *testing.T) {
t.Parallel()
cleanStore(t)

urequire.NoError(t, RegisterUser(alice, aliceAddr))
uassert.NoError(t, UpdateName("alice1", aliceAddr))
})

t.Run("alias_before_name", func(t *testing.T) {
t.Parallel()
cleanStore(t)

uassert.ErrorContains(t, UpdateName(alice, aliceAddr), ErrAliasBeforeName.Error())
})

t.Run("alias_after_delete", func(t *testing.T) {
t.Parallel()
cleanStore(t)

urequire.NoError(t, RegisterUser(alice, aliceAddr))
Expand All @@ -138,7 +126,6 @@ func TestUpdateName(t *testing.T) {
})

t.Run("invalid_inputs", func(t *testing.T) {
t.Parallel()
cleanStore(t)

urequire.NoError(t, RegisterUser(alice, aliceAddr))
Expand All @@ -154,7 +141,6 @@ func TestUpdateName(t *testing.T) {
})

t.Run("address_lookalike", func(t *testing.T) {
t.Parallel()
cleanStore(t)

urequire.NoError(t, RegisterUser(alice, aliceAddr))
Expand All @@ -171,14 +157,12 @@ func TestDelete(t *testing.T) {
std.TestSetOrigCaller(whitelistedCallerAddr)

t.Run("non_existent_user", func(t *testing.T) {
t.Parallel()
cleanStore(t)

uassert.ErrorContains(t, Delete(testutils.TestAddress("unregistered")), ErrUserNotExist.Error())
})

t.Run("double_delete", func(t *testing.T) {
t.Parallel()
cleanStore(t)

urequire.NoError(t, RegisterUser(alice, aliceAddr))
Expand All @@ -189,7 +173,6 @@ func TestDelete(t *testing.T) {
})

t.Run("valid_delete", func(t *testing.T) {
t.Parallel()
cleanStore(t)

urequire.NoError(t, RegisterUser(alice, aliceAddr))
Expand Down
6 changes: 0 additions & 6 deletions examples/gno.land/r/sys/users/users_test.gno
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ func TestResolveName(t *testing.T) {
std.TestSetOrigCaller(whitelistedCallerAddr)

t.Run("single_name", func(t *testing.T) {
t.Parallel()
cleanStore(t)

urequire.NoError(t, RegisterUser(alice, aliceAddr))
Expand All @@ -25,7 +24,6 @@ func TestResolveName(t *testing.T) {
})

t.Run("name+Alias", func(t *testing.T) {
t.Parallel()
cleanStore(t)

urequire.NoError(t, RegisterUser(alice, aliceAddr))
Expand All @@ -40,7 +38,6 @@ func TestResolveName(t *testing.T) {
})

t.Run("multiple_aliases", func(t *testing.T) {
t.Parallel()
cleanStore(t)

urequire.NoError(t, RegisterUser(alice, aliceAddr))
Expand Down Expand Up @@ -69,7 +66,6 @@ func TestResolveAddress(t *testing.T) {
std.TestSetOrigCaller(whitelistedCallerAddr)

t.Run("single_name", func(t *testing.T) {
t.Parallel()
cleanStore(t)

urequire.NoError(t, RegisterUser(alice, aliceAddr))
Expand All @@ -81,7 +77,6 @@ func TestResolveAddress(t *testing.T) {
})

t.Run("name+Alias", func(t *testing.T) {
t.Parallel()
cleanStore(t)

urequire.NoError(t, RegisterUser(alice, aliceAddr))
Expand All @@ -95,7 +90,6 @@ func TestResolveAddress(t *testing.T) {
})

t.Run("multiple_aliases", func(t *testing.T) {
t.Parallel()
cleanStore(t)

urequire.NoError(t, RegisterUser(alice, aliceAddr))
Expand Down

0 comments on commit 091bd8a

Please sign in to comment.