Skip to content

Commit 01f4d3d

Browse files
committed
chore: minor code cleanup
1 parent a642e50 commit 01f4d3d

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ jobs:
195195

196196
- name: Build WebGL Player
197197
run: |
198-
docker exec -e TEST_DSN=http://publickey@localhost:8000/12345 unity dotnet msbuild /t:UnityConfigureSentryOptions /p:Configuration=Release /p:OutDir=other src/Sentry.Unity
198+
docker exec -e TEST_DSN=http://publickey@127.0.0.1:8000/12345 unity dotnet msbuild /t:UnityConfigureSentryOptions /p:Configuration=Release /p:OutDir=other src/Sentry.Unity
199199
docker exec unity dotnet msbuild /t:UnityBuildPlayerWebGL /p:Configuration=Release /p:OutDir=other src/Sentry.Unity
200200
201201
- name: Upload WebGL Build

scripts/smoke-test-webgl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env python3
22

33
# Testing approach:
4-
# 1. Start an server that serves the pre-built WebGL app directory (index.html & co), as well as logs API requests
4+
# 1. Start a web=server for pre-built WebGL app directory (index.html & co) and to collect the API requests
55
# 3. Run the smoke test using chromedriver
6-
# 4. Check the messages received on the API server
6+
# 4. Check the messages received by the API server
77

88
import binascii
99
import datetime

src/Sentry.Unity/WebGL/SentryWebGL.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static void Configure(SentryUnityOptions options)
4141

4242
options.CrashedLastRun = () => false; // no way to recognize crashes in WebGL yet
4343

44-
// Still cant' find out what's using Threads so:
44+
// Still can't find out what's using Threads so:
4545
options.AutoSessionTracking = false;
4646
options.DetectStartupTime = StartupTimeDetectionMode.None;
4747
options.DisableTaskUnobservedTaskExceptionCapture();
@@ -69,7 +69,7 @@ public bool EnqueueEnvelope(Envelope envelope)
6969
return true;
7070
}
7171

72-
public Task FlushAsync(TimeSpan timeout) => Task.CompletedTask; // TODO maybe we can implement this somehow?
72+
public Task FlushAsync(TimeSpan timeout) => Task.CompletedTask;
7373

7474
public int QueuedItems { get; }
7575
}
@@ -146,9 +146,6 @@ private void HandleFailure(HttpResponseMessage response, Envelope processedEnvel
146146
processedEnvelope.TryGetEventId(), Encoding.UTF8.GetString(www.uploadHandler.data));
147147
}
148148
}
149-
150-
// SDK is in debug mode, and envelope was too large. To help troubleshoot:
151-
// NOTE: likely no point to do this on WebGL - who would check the file (in IndexDB)?
152149
}
153150

154151
private UnityWebRequest CreateWebRequest(HttpRequestMessage message)
@@ -198,7 +195,7 @@ internal class UnityWebRequestMessageHandler : HttpMessageHandler
198195
{
199196
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage _, CancellationToken __)
200197
{
201-
// if this throws, see usages of HttpTransport._httpClient
198+
// if this throws, see usages of HttpTransport._httpClient - all should be overridden by UnityWebRequestTransport
202199
throw new InvalidOperationException("UnityWebRequestMessageHandler must be unused");
203200
}
204201
}

0 commit comments

Comments
 (0)