Commit 05c64fa
authored
chore: remove unitytransport debug asserts [up-port] (#3226)
* update
Replace the two places where Debug.Assert is used in UnityTransport to be DEBUG wrapped checks that log warnings as opposed to throwing asserts in order to avoid being considered a failed test run even if all tests have passed.
* style
Cleaning up message a bit.
* test
update to account for switching from a Debug.Assert to a Debug.LogWarning.1 parent 2eee998 commit 05c64fa
File tree
2 files changed
+15
-3
lines changed- com.unity.netcode.gameobjects
- Runtime/Transports/UTP
- Tests/Runtime/Transports
2 files changed
+15
-3
lines changedLines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1220 | 1220 | | |
1221 | 1221 | | |
1222 | 1222 | | |
1223 | | - | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
1224 | 1230 | | |
1225 | 1231 | | |
1226 | 1232 | | |
| |||
1292 | 1298 | | |
1293 | 1299 | | |
1294 | 1300 | | |
1295 | | - | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
1296 | 1308 | | |
1297 | 1309 | | |
1298 | 1310 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
534 | | - | |
| 534 | + | |
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
| |||
0 commit comments