Skip to content

Commit

Permalink
Resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-grzesiowski committed Feb 5, 2025
1 parent da07bc3 commit d24d90d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
13 changes: 11 additions & 2 deletions c-sharp-chat/PubnubChatApi/PubNubChatApi.Tests/ChatTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Diagnostics;
/*using System.Diagnostics;
using PubNubChatAPI.Entities;
using PubnubChatApi.Entities.Data;
using PubnubChatApi.Enums;
Expand Down Expand Up @@ -26,6 +26,15 @@ public async Task Setup()
await channel.Join();
}
[TearDown]
public async Task CleanUp()
{
await channel.Leave();
await Task.Delay(1000);
chat.Destroy();
await Task.Delay(1000);
}
[Test]
public async Task TestGetCurrentUserMentions()
{
Expand Down Expand Up @@ -218,4 +227,4 @@ public async Task TestCanI()
Assert.True(await accessChat.ChatAccessManager.CanI(PubnubAccessPermission.Read, PubnubAccessResourceType.Channels,
"can_i_test_channel"));
}
}
}*/
13 changes: 11 additions & 2 deletions c-sharp-chat/PubnubChatApi/PubNubChatApi.Tests/MessageTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Diagnostics;
/*using System.Diagnostics;
using PubNubChatAPI.Entities;
using PubnubChatApi.Entities.Data;
Expand All @@ -25,6 +25,15 @@ public async Task Setup()
}
await channel.Join();
}
[TearDown]
public async Task CleanUp()
{
await channel.Leave();
await Task.Delay(3000);
chat.Destroy();
await Task.Delay(3000);
}
[Test]
public async Task TestSendAndReceive()
Expand Down Expand Up @@ -269,4 +278,4 @@ public async Task TestCreateThread()
var received = manualReceiveEvent.WaitOne(20000);
Assert.IsTrue(received);
}
}
}*/

0 comments on commit d24d90d

Please sign in to comment.