(t *testing.T)
| 178 | } |
| 179 | |
| 180 | func TestGRPC_GetUserOnlineStats_NotFound(t *testing.T) { |
| 181 | ctx, cancel := context.WithTimeout(sharedTestCtx.ctxWithSession, 5*time.Second) |
| 182 | defer cancel() |
| 183 | |
| 184 | _, err := sharedTestCtx.client.GetUserOnlineStats(ctx, &common.StatRequest{Name: "does-not-exist@example.com"}) |
| 185 | st, _ := status.FromError(err) |
| 186 | if st.Code() != codes.NotFound { |
| 187 | t.Fatalf("Expected NotFound error, got: %v", err) |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | func TestGRPC_GetUserOnlineIpListStats_NotFound(t *testing.T) { |
| 192 | ctx, cancel := context.WithTimeout(sharedTestCtx.ctxWithSession, 5*time.Second) |
nothing calls this directly
no test coverage detected