Skip to content

Commit 3e892f4

Browse files
committed
Drop unnecessary 'async' from tests
1 parent 8173b71 commit 3e892f4

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Tests/JExtractSwiftTests/FunctionDescriptorImportTests.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ final class FunctionDescriptorTests {
102102
}
103103

104104
@Test
105-
func FunctionDescriptor_class_counter_get() async throws {
106-
try await variableAccessorDescriptorTest("counter", .get) { output in
105+
func FunctionDescriptor_class_counter_get() throws {
106+
try variableAccessorDescriptorTest("counter", .get) { output in
107107
assertOutput(
108108
output,
109109
expected:
@@ -117,8 +117,8 @@ final class FunctionDescriptorTests {
117117
}
118118
}
119119
@Test
120-
func FunctionDescriptor_class_counter_set() async throws {
121-
try await variableAccessorDescriptorTest("counter", .set) { output in
120+
func FunctionDescriptor_class_counter_set() throws {
121+
try variableAccessorDescriptorTest("counter", .set) { output in
122122
assertOutput(
123123
output,
124124
expected:
@@ -195,4 +195,4 @@ extension FunctionDescriptorTests {
195195
try body(getOutput)
196196
}
197197

198-
}
198+
}

Tests/JExtractSwiftTests/VariableImportTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ final class VariableImportTests {
3434
"""
3535

3636
@Test("Import: var counter: Int")
37-
func variable_() async throws {
37+
func variable_() throws {
3838
let st = Swift2JavaTranslator(
3939
javaPackage: "com.example.swift",
4040
swiftModuleName: "__FakeModule"
4141
)
4242
st.log.logLevel = .error
4343

44-
try await st.analyze(swiftInterfacePath: "/fake/Fake.swiftinterface", text: class_interfaceFile)
44+
try st.analyze(swiftInterfacePath: "/fake/Fake.swiftinterface", text: class_interfaceFile)
4545

4646
let identifier = "counterInt"
4747
let varDecl: ImportedVariable? =
@@ -168,4 +168,4 @@ final class VariableImportTests {
168168
"""
169169
)
170170
}
171-
}
171+
}

Tests/JavaKitTests/BasicRuntimeTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var jvm: JavaVirtualMachine {
2424
}
2525

2626
class BasicRuntimeTests: XCTestCase {
27-
func testJavaObjectManagement() async throws {
27+
func testJavaObjectManagement() throws {
2828
if isLinux {
2929
throw XCTSkip("Attempts to refcount a null pointer on Linux")
3030
}
@@ -54,7 +54,7 @@ class BasicRuntimeTests: XCTestCase {
5454
XCTAssert(url.javaHolder === urlAgain.javaHolder)
5555
}
5656

57-
func testJavaExceptionsInSwift() async throws {
57+
func testJavaExceptionsInSwift() throws {
5858
if isLinux {
5959
throw XCTSkip("Attempts to refcount a null pointer on Linux")
6060
}
@@ -68,7 +68,7 @@ class BasicRuntimeTests: XCTestCase {
6868
}
6969
}
7070

71-
func testStaticMethods() async throws {
71+
func testStaticMethods() throws {
7272
if isLinux {
7373
throw XCTSkip("Attempts to refcount a null pointer on Linux")
7474
}
@@ -79,7 +79,7 @@ class BasicRuntimeTests: XCTestCase {
7979
XCTAssert(urlConnectionClass.getDefaultAllowUserInteraction() == false)
8080
}
8181

82-
func testClassInstanceLookup() async throws {
82+
func testClassInstanceLookup() throws {
8383
let environment = try jvm.environment()
8484

8585
do {

0 commit comments

Comments
 (0)