Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion inngest-core/src/main/kotlin/com/inngest/Environment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object Environment {

fun inngestEventKey(key: String? = null): String {
if (key != null) return key
return System.getenv(InngestSystem.EventKey.value) ?: ""
return System.getenv(InngestSystem.EventKey.value) ?: "NO_EVENT_KEY_SET"
}

fun inngestSigningKey(
Expand Down
3 changes: 1 addition & 2 deletions inngest-core/src/main/kotlin/com/inngest/Inngest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class Inngest
}

internal inline fun <reified T> sendEvent(payload: Any): T? {
val eventKey = "test"
return send("http://localhost:8288/e/$eventKey", payload)
return send("$baseUrl/e/$eventKey", payload)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ internal class EnvironmentTest {
// EventKey
@Test
fun `test inngestEventKey`() {
assertEquals("", Environment.inngestEventKey())
assertEquals("NO_EVENT_KEY_SET", Environment.inngestEventKey())
}

@Test
Expand Down

0 comments on commit cd70c72

Please sign in to comment.