Skip to content

Commit 15c4096

Browse files
committed
skip grpc tests on the bot
1 parent f3bdad1 commit 15c4096

File tree

2 files changed

+27
-23
lines changed

2 files changed

+27
-23
lines changed

pkgs/appengine/test/integration/common_e2e.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,8 @@ Future<dynamic> withAuthenticator(
8383
project ??= DEFAULT_PROJECT;
8484
serviceKeyLocation ??= DEFAULT_KEY_LOCATION;
8585

86-
final keyJson =
87-
await (_serviceKeyJson(serviceKeyLocation) as FutureOr<String>);
88-
final authenticator = grpc.ServiceAccountAuthenticator(keyJson, scopes);
86+
final keyJson = await (_serviceKeyJson(serviceKeyLocation));
87+
final authenticator = grpc.ServiceAccountAuthenticator(keyJson!, scopes);
8988
return callback(project, authenticator);
9089
}
9190

pkgs/appengine/test/integration/grpc_datastore_test.dart

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,36 +9,41 @@ import 'package:gcloud/db.dart' as db;
99
import 'package:grpc/grpc.dart' as grpc;
1010
import 'package:test/test.dart' as test;
1111

12-
import 'common_e2e.dart' show withAuthenticator;
12+
import 'common_e2e.dart' show onBot, withAuthenticator;
1313
import 'raw_datastore_test_impl.dart' as datastore_tests;
1414

1515
main() async {
1616
final endpoint = 'datastore.googleapis.com';
1717

1818
final String nsPrefix = Platform.operatingSystem;
1919

20-
await withAuthenticator(OAuth2Scopes,
21-
(String project, grpc.HttpBasedAuthenticator authenticator) async {
22-
final clientChannel = grpc.ClientChannel(endpoint);
23-
final datastore = GrpcDatastoreImpl(clientChannel, authenticator, project);
24-
// ignore: unused_local_variable
25-
final dbService = db.DatastoreDB(datastore);
26-
27-
// Once all tests are done we'll close the resources.
28-
test.tearDownAll(() async {
29-
await clientChannel.shutdown();
30-
});
31-
32-
// Run low-level datastore tests.
33-
datastore_tests.runTests(
34-
datastore, '${nsPrefix}${DateTime.now().millisecondsSinceEpoch}');
35-
36-
// Run high-level db tests.
37-
/* db_tests.runTests(
20+
test.group('grpc datastore', () async {
21+
await withAuthenticator(OAuth2Scopes, (
22+
String project,
23+
grpc.HttpBasedAuthenticator authenticator,
24+
) async {
25+
final clientChannel = grpc.ClientChannel(endpoint);
26+
final datastore =
27+
GrpcDatastoreImpl(clientChannel, authenticator, project);
28+
// ignore: unused_local_variable
29+
final dbService = db.DatastoreDB(datastore);
30+
31+
// Once all tests are done we'll close the resources.
32+
test.tearDownAll(() async {
33+
await clientChannel.shutdown();
34+
});
35+
36+
// Run low-level datastore tests.
37+
datastore_tests.runTests(
38+
datastore, '${nsPrefix}${DateTime.now().millisecondsSinceEpoch}');
39+
40+
// Run high-level db tests.
41+
/* db_tests.runTests(
3842
dbService, '${nsPrefix}${DateTime.now().millisecondsSinceEpoch}');
3943
4044
// Run metamodel tests.
4145
metamodel_tests.runTests(datastore, dbService,
4246
'${nsPrefix}${DateTime.now().millisecondsSinceEpoch}');*/
43-
});
47+
});
48+
}, skip: onBot());
4449
}

0 commit comments

Comments
 (0)