Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nns: fix expired TLD registration #366

Merged
merged 1 commit into from
Nov 10, 2023
Merged

nns: fix expired TLD registration #366

merged 1 commit into from
Nov 10, 2023

Conversation

roman-khimov
Copy link
Member

If a TLD has expired:

  • it can't be renewed because of "name has expired"
  • it can't be registered again because of "TLD already exists"

The first one is OK, but the second one is fixed here.

If a TLD has expired:
 * it can't be renewed because of "name has expired"
 * it can't be registered again because of "TLD already exists"

The first one is OK, but the second one is fixed here.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
@@ -278,6 +280,13 @@ func TestExpiration(t *testing.T) {

c.InvokeFail(t, "name has expired", "getAllRecords", "testdomain.com")
c.InvokeFail(t, "name has expired", "ownerOf", "testdomain.com")

c.InvokeFail(t, "name has expired", "renew", "newtld")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow so many tests inside a singe Test* without any t.Run

@roman-khimov roman-khimov merged commit 76f2d44 into master Nov 10, 2023
8 checks passed
@roman-khimov roman-khimov deleted the fix-reg-tld branch November 10, 2023 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants