Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add more descriptive error messages to control plane test #95

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/src/cache/cache_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void main() {
fail('Expected Success but got AlreadyExists');
case CreateCacheError():
fail(
'Expected Success but got Error: ${createResp.errorCode} ${createResp.message}');
'Expected Success but got Error while creating cache $newTestCacheName: ${createResp.errorCode} ${createResp.message}');
}

sleep(Duration(seconds: 1));
Expand All @@ -69,7 +69,7 @@ void main() {
reason: "integration test cache should be in list of caches");
case ListCachesError():
fail(
'Expected Success but got Error: ${listResp.errorCode} ${listResp.message}');
'Expected Success but got Error while listing caches: ${listResp.errorCode} ${listResp.message}');
}

sleep(Duration(seconds: 1));
Expand All @@ -80,7 +80,7 @@ void main() {
reason: "delete cache should succeed");
case DeleteCacheError():
fail(
'Expected Success but got Error: ${deleteResp.errorCode} ${deleteResp.message}');
'Expected Success but got Error when trying to delete cache $newTestCacheName: ${deleteResp.errorCode} ${deleteResp.message}');
}

sleep(Duration(seconds: 1));
Expand All @@ -95,7 +95,7 @@ void main() {
"integration test cache should still be in list of caches");
case ListCachesError():
fail(
'Expected Success but got Error: ${listResp2.errorCode} ${listResp2.message}');
'Expected Success but got Error listing caches after deletion: ${listResp2.errorCode} ${listResp2.message}');
}
});
});
Expand Down