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

feat(gcp): current region methods #421

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix windows
  • Loading branch information
kevmoo committed Jul 17, 2023
commit 9e38e4dcaa26354230b3f3bcf449041dedd49022
24 changes: 14 additions & 10 deletions gcp/test/gcp_test.dart
Original file line number Diff line number Diff line change
@@ -135,19 +135,23 @@ void main() {
group('currentRegion', () {
const regionPrint = 'test/src/region_print.dart';

test('not environment', () async {
final proc = await _run(regionPrint);
test(
'not environment',
onPlatform: const {'windows': Skip('Broken on windows')},
() async {
final proc = await _run(regionPrint);

final errorOut = await proc.stderrStream().toList();
final errorOut = await proc.stderrStream().toList();

await expectLater(
errorOut,
containsAll(MetadataValue.region.environmentValues),
);
await expectLater(proc.stdout, emitsDone);
await expectLater(
errorOut,
containsAll(MetadataValue.region.environmentValues),
);
await expectLater(proc.stdout, emitsDone);

await proc.shouldExit(255);
});
await proc.shouldExit(255);
},
);

test('environment set', () async {
final proc = await _run(