=htt #19792 Increase file upload directive test timeouts
This commit is contained in:
parent
8d7d3aac6b
commit
f5cd3cd4da
1 changed files with 7 additions and 1 deletions
|
|
@ -4,13 +4,19 @@
|
|||
|
||||
package akka.http.scaladsl.server.directives
|
||||
|
||||
import java.io.{ FileInputStream, File }
|
||||
import java.io.{ File, FileInputStream }
|
||||
|
||||
import akka.http.scaladsl.model._
|
||||
import akka.http.scaladsl.server.{ MissingFormFieldRejection, RoutingSpec }
|
||||
import akka.http.scaladsl.testkit.RouteTestTimeout
|
||||
import akka.util.ByteString
|
||||
import scala.concurrent.duration._
|
||||
|
||||
class FileUploadDirectivesSpec extends RoutingSpec {
|
||||
|
||||
// tests touches filesystem, so reqs may take longer than the default of 1.second to complete
|
||||
implicit val routeTimeout = RouteTestTimeout(3.seconds)
|
||||
|
||||
"the uploadedFile directive" should {
|
||||
|
||||
"write a posted file to a temporary file on disk" in {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue