Index: test/common_e2e.dart |
diff --git a/test/common_e2e.dart b/test/common_e2e.dart |
index aa75dae5c0f5c762d47dc15c920156dc3e0fa812..bbc56f18e849512047e07c5eaf284a4508e418aa 100644 |
--- a/test/common_e2e.dart |
+++ b/test/common_e2e.dart |
@@ -51,7 +51,7 @@ bool onBot() { |
// Get the service key from the specified location. |
Future<String> serviceKeyJson(String serviceKeyLocation) { |
if (!serviceKeyLocation.startsWith('gs://')) { |
- throw new Exception('Service key location must start with gs://'); |
+ return new File(serviceKeyLocation).readAsString(); |
} |
var future; |
if (onBot()) { |