docs: reorder & testing
This commit is contained in:
@@ -70,8 +70,12 @@ func TestSoftDelete_Cascade(t *testing.T) {
|
||||
if lastErr == nil {
|
||||
t.Fatalf("gateway accepted authenticated call after soft delete; expected rejection")
|
||||
}
|
||||
if !testenv.IsUnauthenticated(lastErr) {
|
||||
t.Fatalf("post-delete status: expected Unauthenticated, got %v", lastErr)
|
||||
// Gateway maps a revoked session to FailedPrecondition ("device
|
||||
// session is revoked"); a session that vanished from the cache
|
||||
// before the call lands as Unauthenticated. Either is a correct
|
||||
// rejection.
|
||||
if !testenv.IsFailedPrecondition(lastErr) && !testenv.IsUnauthenticated(lastErr) {
|
||||
t.Fatalf("post-delete status: %v", lastErr)
|
||||
}
|
||||
|
||||
// Geo cascade: counters for this user should be gone.
|
||||
|
||||
Reference in New Issue
Block a user