Skip to content

Commit 515522a

Browse files
committed
test update
1 parent 47f642d commit 515522a

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

features/fixtures/mazerunner/Assets/Scripts/Scenarios/Network/NetworkPostFail.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,19 @@ public override void Run()
1919

2020
private IEnumerator DoRun()
2121
{
22+
#if UNITY_2022_2_OR_NEWER
23+
WWWForm form = new WWWForm();
24+
form.AddField("data", "1234567890");
25+
yield return BugsnagUnityWebRequest.Post(FAIL_URL, form).SendWebRequest();
26+
#else
2227
yield return BugsnagUnityWebRequest.Post(FAIL_URL, "1234567890").SendWebRequest();
28+
#endif
2329
yield return new WaitForSeconds(1);
24-
BugsnagUnityWebRequest.Post(Main.MazeHost, "1234567890").SendWebRequest();
30+
#if UNITY_2022_2_OR_NEWER
31+
yield return BugsnagUnityWebRequest.Post(Main.MazeHost, form).SendWebRequest();
32+
#else
33+
yield return BugsnagUnityWebRequest.Post(Main.MazeHost, "1234567890").SendWebRequest();
34+
#endif
2535
}
2636

2737
}

features/fixtures/mazerunner/Assets/Scripts/Scenarios/Network/NetworkPostSuccess.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ public override void PreparePerformanceConfig(string apiKey, string host)
1414

1515
public override void Run()
1616
{
17+
#if UNITY_2022_2_OR_NEWER
18+
WWWForm form = new WWWForm();
19+
form.AddField("data", "1234567890");
20+
BugsnagUnityWebRequest.Post(Main.MazeHost, form).SendWebRequest();
21+
#else
1722
BugsnagUnityWebRequest.Post(Main.MazeHost, "1234567890").SendWebRequest();
23+
#endif
1824
}
1925

2026
}

0 commit comments

Comments
 (0)