+1
-1
manifest.toml
+1
-1
manifest.toml
···
31
gleam_json = { version = ">= 0.6.0 and < 2.0.0" }
32
gleam_stdlib = { version = ">= 0.29.0 and < 2.0.0" }
33
gleeunit = { version = "~> 1.0" }
34
-
logging = { version = ">= 1.0.0 and < 2.0.0" }
35
marceau = { version = ">= 1.1.0 and < 2.0.0" }
36
mist = { version = ">= 1.2.0 and < 2.0.0" }
37
simplifile = { version = ">= 2.0.0 and < 3.0.0" }
···
31
gleam_json = { version = ">= 0.6.0 and < 2.0.0" }
32
gleam_stdlib = { version = ">= 0.29.0 and < 2.0.0" }
33
gleeunit = { version = "~> 1.0" }
34
+
logging = { version = ">= 1.2.0 and < 2.0.0" }
35
marceau = { version = ">= 1.1.0 and < 2.0.0" }
36
mist = { version = ">= 1.2.0 and < 2.0.0" }
37
simplifile = { version = ">= 2.0.0 and < 3.0.0" }
+4
-1
test/wisp_test.gleam
+4
-1
test/wisp_test.gleam
···
1
+
import exception
2
import gleam/bit_array
3
import gleam/crypto
4
import gleam/dict
···
334
}
335
336
pub fn rescue_crashes_error_test() {
337
+
wisp.set_logger_level(wisp.CriticalLevel)
338
+
use <- exception.defer(fn() { wisp.set_logger_level(wisp.InfoLevel) })
339
+
340
{
341
use <- wisp.rescue_crashes
342
panic as "we need to crash to test the middleware"