Skip to content

Commit

Permalink
chore: add more descriptive error messages to control plane test (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
anitarua committed Jan 12, 2024
1 parent e3fe047 commit accf3e8
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit accf3e8

Please sign in to comment.