Skip to content

Commit c604f3c

Browse files
committed
reorder methods
1 parent 1f8c435 commit c604f3c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

dotnet/test/common/BiDi/Permissions/PermissionsTests.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ protected override async Task<BiDi> CreateBiDi(IWebDriver driver)
2121
return bidi;
2222
}
2323

24+
[TearDown]
25+
public async Task TearDown()
26+
{
27+
if (_connection is not null)
28+
{
29+
await _connection.DisposeAsync();
30+
}
31+
}
32+
2433
[Test]
2534
public async Task SettingPermissionsTest()
2635
{
@@ -51,14 +60,5 @@ public async Task SettingPermissionsTest()
5160

5261
Assert.That(after.Result, Is.EqualTo(new StringRemoteValue("denied")));
5362
}
54-
55-
[TearDown]
56-
public async Task TearDown()
57-
{
58-
if (_connection is not null)
59-
{
60-
await _connection.DisposeAsync();
61-
}
62-
}
6363
}
6464
}

0 commit comments

Comments
 (0)