Skip to content

Commit 95383be

Browse files
committed
fixup
1 parent 4809c6d commit 95383be

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

Sources/SwiftAwsLambda/Lambda.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public enum Lambda {
202202
let stopSignal: Signal
203203

204204
init(id: String? = nil, maxTimes: Int? = nil, stopSignal: Signal? = nil) {
205-
self.id = id ?? "lambda" // "\(DispatchTime.now().uptimeNanoseconds)"
205+
self.id = id ?? "\(DispatchTime.now().uptimeNanoseconds)"
206206
self.maxTimes = maxTimes ?? env("MAX_REQUESTS").flatMap(Int.init) ?? 0
207207
self.stopSignal = stopSignal ?? env("STOP_SIGNAL").flatMap(Int32.init).flatMap(Signal.init) ?? Signal.TERM
208208
precondition(self.maxTimes >= 0, "maxTimes must be equal or larger than 0")

Tests/SwiftAwsLambdaTests/Lambda+CodeableTest+XCTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import XCTest
2525
extension CodableLambdaTest {
2626
static var allTests: [(String, (CodableLambdaTest) -> () throws -> Void)] {
2727
return [
28-
("testSuceess", testSuceess),
28+
("testSuccess", testSuccess),
2929
("testFailure", testFailure),
3030
("testClosureSuccess", testClosureSuccess),
3131
("testClosureFailure", testClosureFailure),

Tests/SwiftAwsLambdaTests/Lambda+CodeableTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import XCTest
1717

1818
class CodableLambdaTest: XCTestCase {
19-
func testSuceess() {
19+
func testSuccess() {
2020
let server = MockLambdaServer(behavior: GoodBehavior())
2121
XCTAssertNoThrow(try server.start().wait())
2222
defer { XCTAssertNoThrow(try server.stop().wait()) }

Tests/SwiftAwsLambdaTests/Lambda+StringTest+XCTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import XCTest
2525
extension StringLambdaTest {
2626
static var allTests: [(String, (StringLambdaTest) -> () throws -> Void)] {
2727
return [
28-
("testSuceess", testSuceess),
28+
("testSuccess", testSuccess),
2929
("testFailure", testFailure),
3030
("testClosureSuccess", testClosureSuccess),
3131
("testClosureFailure", testClosureFailure),

Tests/SwiftAwsLambdaTests/Lambda+StringTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import XCTest
1717

1818
class StringLambdaTest: XCTestCase {
19-
func testSuceess() {
19+
func testSuccess() {
2020
let server = MockLambdaServer(behavior: GoodBehavior())
2121
XCTAssertNoThrow(try server.start().wait())
2222
defer { XCTAssertNoThrow(try server.stop().wait()) }

Tests/SwiftAwsLambdaTests/LambdaTest+XCTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import XCTest
2525
extension LambdaTest {
2626
static var allTests: [(String, (LambdaTest) -> () throws -> Void)] {
2727
return [
28-
("testSuceess", testSuceess),
28+
("testSuccess", testSuccess),
2929
("testFailure", testFailure),
3030
("testInitFailure", testInitFailure),
3131
("testInitFailureAndReportErrorFailure", testInitFailureAndReportErrorFailure),

Tests/SwiftAwsLambdaTests/LambdaTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import NIO
1717
import XCTest
1818

1919
class LambdaTest: XCTestCase {
20-
func testSuceess() {
20+
func testSuccess() {
2121
let server = MockLambdaServer(behavior: GoodBehavior())
2222
XCTAssertNoThrow(try server.start().wait())
2323
defer { XCTAssertNoThrow(try server.stop().wait()) }

0 commit comments

Comments
 (0)