Skip to content

Commit

Permalink
Fix test_issue_588
Browse files Browse the repository at this point in the history
  • Loading branch information
finestructure committed Jan 24, 2025
1 parent 39b1fa7 commit 1211802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/AppTests/GitlabBuilderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class GitlabBuilderTests: AppTestCase {
called.setValue(true)
let body = try XCTUnwrap(body)
// validate
let swiftVersion = (try? JSONDecoder().decode(Gitlab.Builder.PostDTO.self, from: body))
let swiftVersion = (try? URLEncodedFormDecoder().decode(Gitlab.Builder.PostDTO.self, from: body))
.flatMap { $0.variables["SWIFT_VERSION"] }
XCTAssertEqual(swiftVersion, "6.0")
return try .created(jsonEncode: Gitlab.Builder.Response(webUrl: "http://web_url"))
Expand Down

0 comments on commit 1211802

Please sign in to comment.