Skip to content

Commit

Permalink
fixed license test
Browse files Browse the repository at this point in the history
  • Loading branch information
harshil-goel committed Jul 16, 2024
1 parent 725b25a commit f2b070d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions systest/license/license_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package main

import (
"testing"
"time"

"github.com/stretchr/testify/require"

Expand Down Expand Up @@ -155,6 +156,12 @@ func assertLicenseNotEnabled(t *testing.T, hcli *dgraphapi.HTTPClient, user stri
response, err := hcli.GetZeroState()
require.NoError(t, err)

if len(user) != len(response.Extensions["user"].(string)) {
time.Sleep(5 * time.Second)
response, err = hcli.GetZeroState()
require.NoError(t, err)
}

require.Equal(t, response.Extensions["user"], user)
require.Equal(t, response.Extensions["enabled"], false)
}

0 comments on commit f2b070d

Please sign in to comment.