Skip to content

Commit

Permalink
Merge branch 'main' into dev/1.4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanyaVRC authored Dec 20, 2022
2 parents fa91412 + 77a2b3f commit 0b8927a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
5 changes: 2 additions & 3 deletions src/VRCOscLib/Tests/vrcosclib.Test/Avatar/OscPhysBoneTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public void Setup()
TestUtility.CreateConfigFileForTest(AvatarId, "Test Avatar", TestUtility.GetAvatarConfigDirectory());
_avatar = OscAvatarConfig.Create(AvatarId)!;

_server = new OscServer(OscUtility.SendPort);

OscParameter.Parameters.Clear();
}
Expand All @@ -30,18 +29,18 @@ public void Setup()
public void TearDown()
{
TestUtility.RestoreOscDirectory();
_server.Dispose();
}

[OneTimeSetUp]
public void OneTimeSetUp()
{
_server = new OscServer(OscUtility.SendPort);
}

[OneTimeTearDown]
public void OneTimeTearDown()
{

_server.Dispose();
}

[Test]
Expand Down
8 changes: 3 additions & 5 deletions src/VRCOscLib/Tests/vrcosclib.Test/Chatbox/OscChatboxTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,25 @@ public class OscChatboxTest
[SetUp]
public void Setup()
{
_server = new OscServer(OscUtility.SendPort);

OscParameter.Parameters.Clear();
}

[TearDown]
public void TearDown()
{
_server.Dispose();

}

[OneTimeSetUp]
public void OneTimeSetUp()
{

_server = new OscServer(OscUtility.SendPort);
}

[OneTimeTearDown]
public void OneTimeTearDown()
{

_server.Dispose();
}


Expand Down
12 changes: 5 additions & 7 deletions src/VRCOscLib/Tests/vrcosclib.Test/Utility/OscParameterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,27 @@ public class OscParameterTests
[SetUp]
public void Setup()
{
_client = new OscClient("127.0.0.1", OscUtility.ReceivePort);
_server = new OscServer(OscUtility.SendPort);

OscParameter.Parameters.Clear();
}

[TearDown]
public void TearDown()
{
_client.Dispose();
_server.Dispose();

}

[OneTimeSetUp]
public void OneTimeSetUp()
{

_client = new OscClient(OscUtility.VrcIPAddress, OscUtility.ReceivePort);
_server = new OscServer(OscUtility.SendPort);
}

[OneTimeTearDown]
public void OneTimeTearDown()
{

_client.Dispose();
_server.Dispose();
}

[Test]
Expand Down
4 changes: 2 additions & 2 deletions src/VRCOscLib/VRCOscLib/Chatbox/OscChatbox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ public static class OscChatbox
/// <summary>
/// The OSC address for sending chatbox input messages.
/// </summary>
public static string InputAddress = "/chatbox/input";
public static readonly string InputAddress = "/chatbox/input";

/// <summary>
/// The OSC address for sending typing notifications.
/// </summary>
public static string TypingAddress = "/chatbox/typing";
public static readonly string TypingAddress = "/chatbox/typing";

/// <summary>
/// Sends a message to the VRChat chatbox.
Expand Down

0 comments on commit 0b8927a

Please sign in to comment.