()
| 1664 | } |
| 1665 | |
| 1666 | func (t *Token) refreshToken() error { |
| 1667 | t.Lock() |
| 1668 | defer t.Unlock() |
| 1669 | err := hc.LoginUsingToken(0) |
| 1670 | if err != nil { |
| 1671 | return err |
| 1672 | } |
| 1673 | t.token.AccessJwt = hc.AccessJwt |
| 1674 | t.token.RefreshToken = hc.RefreshToken |
| 1675 | return nil |
| 1676 | } |
| 1677 | |
| 1678 | func TestMain(m *testing.M) { |
| 1679 | conf := dgraphtest.NewClusterConfig().WithNumAlphas(1).WithNumZeros(1).WithReplicas(1).WithACL(time.Hour) |
no test coverage detected