feat(account): #49 replace group_id with user_id, as data sharing is a whole new complicated topic
This commit was merged in pull request #60.
This commit is contained in:
@@ -334,7 +334,7 @@ func TestIntegrationAuth(t *testing.T) {
|
||||
resp, err = httpClient.Do(req)
|
||||
timeEnd := time.Now()
|
||||
assert.Nil(t, err)
|
||||
if timeEnd.Sub(timeStart) > 260*time.Millisecond || timeEnd.Sub(timeStart) <= 250*time.Millisecond {
|
||||
if timeEnd.Sub(timeStart) > 260*time.Millisecond || timeEnd.Sub(timeStart) < 250*time.Millisecond {
|
||||
t.Fail()
|
||||
t.Logf("Time did not match: %v", timeEnd.Sub(timeStart))
|
||||
}
|
||||
@@ -929,7 +929,7 @@ func TestIntegrationAuth(t *testing.T) {
|
||||
err = db.QueryRow("SELECT COUNT(*) FROM user WHERE user_id = ?", userId).Scan(&rows)
|
||||
assert.Nil(t, err)
|
||||
assert.Equal(t, 0, rows)
|
||||
err = db.QueryRow("SELECT COUNT(*) FROM account WHERE group_id = ?", userId).Scan(&rows)
|
||||
err = db.QueryRow("SELECT COUNT(*) FROM account WHERE user_id = ?", userId).Scan(&rows)
|
||||
assert.Nil(t, err)
|
||||
assert.Equal(t, 0, rows)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user