Skip to content

Commit

Permalink
updated call to DartUri and removed unecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
jyameo committed Jan 17, 2025
1 parent d4ec13f commit f5758a2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dwds/test/common/chrome_proxy_service_common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -739,10 +739,7 @@ void runTests({
for (final scriptRef in scripts.scripts!) {
final script =
await service.getObject(isolate.id!, scriptRef.id!) as Script;
var serverPath = DartUri(script.uri!, 'hello_world/').serverPath;
if (serverPath.startsWith('hello_world/packages/')) {
serverPath = serverPath.replaceFirst('hello_world/', '');
}
final serverPath = DartUri(script.uri!, '').serverPath;
final result = await http
.get(Uri.parse('http://localhost:${context.port}/$serverPath'));
// TODO: Figure out if we can encode the sript as utf8 and avoid this
Expand Down

0 comments on commit f5758a2

Please sign in to comment.