Skip to content

Commit f5758a2

Browse files
committed
updated call to DartUri and removed unecessary check
1 parent d4ec13f commit f5758a2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

dwds/test/common/chrome_proxy_service_common.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -739,10 +739,7 @@ void runTests({
739739
for (final scriptRef in scripts.scripts!) {
740740
final script =
741741
await service.getObject(isolate.id!, scriptRef.id!) as Script;
742-
var serverPath = DartUri(script.uri!, 'hello_world/').serverPath;
743-
if (serverPath.startsWith('hello_world/packages/')) {
744-
serverPath = serverPath.replaceFirst('hello_world/', '');
745-
}
742+
final serverPath = DartUri(script.uri!, '').serverPath;
746743
final result = await http
747744
.get(Uri.parse('http://localhost:${context.port}/$serverPath'));
748745
// TODO: Figure out if we can encode the sript as utf8 and avoid this

0 commit comments

Comments
 (0)