Skip to content

Commit 20304f1

Browse files
authored
test: Update asmdef for the tests to match the product (#2016)
1 parent f063141 commit 20304f1

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

testproject/Assets/Scenes/MultiprocessTestScene.unity

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ RenderSettings:
3838
m_ReflectionIntensity: 1
3939
m_CustomReflection: {fileID: 0}
4040
m_Sun: {fileID: 0}
41-
m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1}
41+
m_IndirectSpecularColor: {r: 0.44657838, g: 0.49641234, b: 0.57481676, a: 1}
4242
m_UseRadianceAmbientProbe: 0
4343
--- !u!157 &3
4444
LightmapSettings:
@@ -320,7 +320,6 @@ MeshRenderer:
320320
m_CastShadows: 1
321321
m_ReceiveShadows: 1
322322
m_DynamicOccludee: 1
323-
m_StaticShadowCaster: 0
324323
m_MotionVectors: 1
325324
m_LightProbeUsage: 1
326325
m_ReflectionProbeUsage: 1
@@ -439,7 +438,6 @@ MeshRenderer:
439438
m_CastShadows: 1
440439
m_ReceiveShadows: 1
441440
m_DynamicOccludee: 1
442-
m_StaticShadowCaster: 0
443441
m_MotionVectors: 1
444442
m_LightProbeUsage: 1
445443
m_ReflectionProbeUsage: 1
@@ -610,7 +608,6 @@ MeshRenderer:
610608
m_CastShadows: 1
611609
m_ReceiveShadows: 1
612610
m_DynamicOccludee: 1
613-
m_StaticShadowCaster: 0
614611
m_MotionVectors: 1
615612
m_LightProbeUsage: 1
616613
m_ReflectionProbeUsage: 1
@@ -706,7 +703,6 @@ MeshRenderer:
706703
m_CastShadows: 1
707704
m_ReceiveShadows: 1
708705
m_DynamicOccludee: 1
709-
m_StaticShadowCaster: 0
710706
m_MotionVectors: 1
711707
m_LightProbeUsage: 1
712708
m_ReflectionProbeUsage: 1
@@ -794,7 +790,7 @@ MonoBehaviour:
794790
LogLevel: 1
795791
NetworkConfig:
796792
ProtocolVersion: 0
797-
NetworkTransport: {fileID: 1674777073}
793+
NetworkTransport: {fileID: 2027640073}
798794
PlayerPrefab: {fileID: 4700706668509470175, guid: 7eeaaf9e50c0afc4dab93584a54fb0d6,
799795
type: 3}
800796
NetworkPrefabs:

testproject/Assets/Tests/Runtime/MultiprocessRuntime/TestCoordinator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private set
5959
}
6060
}
6161
private string m_ConnectAddress = "127.0.0.1";
62-
public static string Port = "3076";
62+
public static string Port = "7777";
6363
private bool m_IsClient;
6464

6565
private void SetConfigurationTypeAndConnect(ConfigurationType type)
@@ -127,7 +127,7 @@ public void Awake()
127127
// if we've tried all the configuration types and none of them are correct then we should throw an exception
128128
if (ConfigurationType == ConfigurationType.Unknown)
129129
{
130-
throw new Exception("Unable to determine configuration for NetworkManager via commandline, webapi or config file");
130+
// throw new Exception("Unable to determine configuration for NetworkManager via commandline, webapi or config file");
131131
}
132132

133133
if (Instance != null)

testproject/Assets/Tests/Runtime/MultiprocessRuntime/ThreeDText.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
using UnityEngine;
2-
#if UNITY_UNET_PRESENT
3-
using Unity.Netcode.Transports.UNET;
4-
#endif
52

63
namespace Unity.Netcode.MultiprocessRuntimeTests
74
{

testproject/Assets/Tests/Runtime/MultiprocessRuntime/testproject.multiprocesstests.asmdef

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
"defineConstraints": [
2323
"UNITY_INCLUDE_TESTS"
2424
],
25-
"versionDefines": [],
26-
"noEngineReferences": false
25+
"noEngineReferences": false,
26+
"versionDefines": [
27+
{
28+
"name": "Unity",
29+
"expression": "(0,2022.2.0a5)",
30+
"define": "UNITY_UNET_PRESENT"
31+
}
32+
]
2733
}

0 commit comments

Comments
 (0)