Skip to content

Commit

Permalink
Fix failing accounts test
Browse files Browse the repository at this point in the history
  • Loading branch information
anbsky committed Jul 20, 2019
1 parent 077ce5e commit 336bdbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/accounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"net/http"
"net/http/httptest"
"os"
"sync"
"testing"
"time"
"sync"

"github.com/lbryio/lbrytv/config"
"github.com/lbryio/lbrytv/internal/lbrynet"
Expand All @@ -27,7 +27,7 @@ const testSetupWait = 200 * time.Millisecond

func TestMain(m *testing.M) {
// call flag.Parse() here if TestMain uses flags
config.Override("AccountsEnabled", 1)
config.Override("AccountsEnabled", true)
defer config.RestoreOverridden()

dbConfig := config.GetDatabase()
Expand Down Expand Up @@ -186,7 +186,7 @@ func TestWithValidAuthTokenConcurrent(t *testing.T) {
func TestWithWrongAuthToken(t *testing.T) {
testFuncSetup()
defer testFuncTeardown()

config.Override("AccountsEnabled", true)
var (
q *jsonrpc.RPCRequest
qBody []byte
Expand Down

0 comments on commit 336bdbc

Please sign in to comment.