Skip to content

Commit

Permalink
run format
Browse files Browse the repository at this point in the history
  • Loading branch information
denrase committed Jul 30, 2024
1 parent f48b52d commit 89c0915
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dart/test/http_client/io_client_provider_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ void main() {
});

test('socks proxy should not call findProxyResult', () async {
fixture.options.proxy =
SentryProxy(type: SentryProxyType.socks, host: 'localhost', port: 8080);
fixture.options.proxy = SentryProxy(
type: SentryProxyType.socks, host: 'localhost', port: 8080);

final sut = fixture.getSut();
sut.getClient(fixture.options);
Expand Down
14 changes: 8 additions & 6 deletions dart/test/protocol/sentry_proxy_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,27 @@ void main() {
});

test('returns "PROXY host:port" for ProxyType.http with host and port', () {
SentryProxy proxy =
SentryProxy(type: SentryProxyType.http, host: 'localhost', port: 8080);
SentryProxy proxy = SentryProxy(
type: SentryProxyType.http, host: 'localhost', port: 8080);
expect(proxy.toPacString(), equals('PROXY localhost:8080'));
});

test('returns "PROXY host" for ProxyType.http with host only', () {
SentryProxy proxy = SentryProxy(type: SentryProxyType.http, host: 'localhost');
SentryProxy proxy =
SentryProxy(type: SentryProxyType.http, host: 'localhost');
expect(proxy.toPacString(), equals('PROXY localhost'));
});

test('returns "SOCKS host:port" for ProxyType.socks with host and port',
() {
SentryProxy proxy =
SentryProxy(type: SentryProxyType.socks, host: 'localhost', port: 8080);
SentryProxy proxy = SentryProxy(
type: SentryProxyType.socks, host: 'localhost', port: 8080);
expect(proxy.toPacString(), equals('SOCKS localhost:8080'));
});

test('returns "SOCKS host" for ProxyType.socks with host only', () {
SentryProxy proxy = SentryProxy(type: SentryProxyType.socks, host: 'localhost');
SentryProxy proxy =
SentryProxy(type: SentryProxyType.socks, host: 'localhost');
expect(proxy.toPacString(), equals('SOCKS localhost'));
});

Expand Down

0 comments on commit 89c0915

Please sign in to comment.