Browse Source

Fix async warnings

tags/2.0.0-beta
Christopher F 7 years ago
parent
commit
c461201fa5
2 changed files with 5 additions and 5 deletions
  1. +3
    -3
      test/Discord.Net.Tests/Tests.ChannelPermissions.cs
  2. +2
    -2
      test/Discord.Net.Tests/Tests.GuildPermissions.cs

+ 3
- 3
test/Discord.Net.Tests/Tests.ChannelPermissions.cs View File

@@ -7,7 +7,7 @@ namespace Discord
public partial class Tests public partial class Tests
{ {
[Fact] [Fact]
public async Task TestChannelPermission()
public void TestChannelPermission()
{ {
var perm = new ChannelPermissions(); var perm = new ChannelPermissions();


@@ -84,7 +84,7 @@ namespace Discord
Assert.Equal(groupChannel, ChannelPermissions.Group.RawValue); Assert.Equal(groupChannel, ChannelPermissions.Group.RawValue);
} }


public async Task TestChannelPermissionModify()
public void TestChannelPermissionModify()
{ {
// test channel permission modify // test channel permission modify


@@ -314,7 +314,7 @@ namespace Discord
} }


[Fact] [Fact]
public async Task TestChannelTypeResolution()
public void TestChannelTypeResolution()
{ {
ITextChannel someChannel = null; ITextChannel someChannel = null;
// null channels will throw exception // null channels will throw exception


+ 2
- 2
test/Discord.Net.Tests/Tests.GuildPermissions.cs View File

@@ -7,7 +7,7 @@ namespace Discord
public partial class Tests public partial class Tests
{ {
[Fact] [Fact]
public async Task TestGuildPermission()
public void TestGuildPermission()
{ {
// Test Guild Permission Constructors // Test Guild Permission Constructors
var perm = new GuildPermissions(); var perm = new GuildPermissions();
@@ -49,7 +49,7 @@ namespace Discord
} }


[Fact] [Fact]
public async Task TestGuildPermissionModify()
public void TestGuildPermissionModify()
{ {
var perm = new GuildPermissions(); var perm = new GuildPermissions();




Loading…
Cancel
Save