Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke committed Jan 13, 2024
1 parent f9be13d commit fbaee4a
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ class MockWebServerExtension :
private val ExtensionContext.resource: ServersForTest
get() {
// For Methods (before/after/test) grab the class store
val store = if (this.element.getOrNull() is Method) {
val parent = parent.get()
parent.getStore(namespace)
} else {
getStore(namespace)
}
val store =
if (this.element.getOrNull() is Method) {
val parent = parent.get()
parent.getStore(namespace)
} else {
getStore(namespace)
}

return store.serversForTest
}
Expand Down

0 comments on commit fbaee4a

Please sign in to comment.