Skip to content

Commit

Permalink
fix: fix swift lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gulivero1773 committed Feb 1, 2024
1 parent 3890d1a commit 587f4c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import Vapor

/// Groups func for get psql health check
public protocol PsqlHealthChecksProtocol {

/// Get psql health using authorize parameters
/// - Parameters:
/// - hostname: `String`
Expand Down
3 changes: 2 additions & 1 deletion Tests/AppHealthChecksTests/PsqlHealthChecksTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ import XCTest
@testable import AppHealthChecks

final class PsqlHealthChecksTests: XCTestCase {
let defaultPort = 5432
func testGetHealthUsingParameters() async {
let app = Application(.testing)
defer { app.shutdown() }
app.psqlHealthChecks = PsqlHealthChecksMock()
let result = await app.psqlHealthChecks?.getHealth(
hostname: "localhost",
port: 5432,
port: defaultPort,
username: "test",
password: "password",
database: "test"
Expand Down

0 comments on commit 587f4c7

Please sign in to comment.