Skip to content

Commit b5ff774

Browse files
author
Ashish
committed
fix unit test
1 parent 97bfc51 commit b5ff774

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

agent-providers/span/src/test/scala/com/expedia/www/haystack/agent/pitchfork/HttpConfigSpec.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ import scala.collection.JavaConverters._
1212
class HttpConfigSpec extends FunSpec with Matchers with EasyMockSugar {
1313
describe("Http configuration provider") {
1414
it("should return gzip enabled as true if provided and its value is 'true'") {
15-
val config = ConfigFactory.parseMap(Map("port" -> 9115, "http.threads.min" -> 2, "http.threads.max" -> 4, "gzip.enabled" -> true).asJava)
15+
val config = ConfigFactory.parseMap(Map("port" -> 9115, "http.threads.min" -> 2, "http.threads.max" -> 4, "gzip.enabled" -> false).asJava)
1616
val httpConfig = HttpConfig.from(config)
17-
httpConfig.isGzipEnabled should equal (true)
17+
httpConfig.isGzipEnabled should equal (false)
1818
}
1919
it("should return gzip enabled as false if not provided") {
2020
val config = ConfigFactory.parseMap(Map("port" -> 9115, "http.threads.min" -> 2, "http.threads.max" -> 4).asJava)
2121
val httpConfig = HttpConfig.from(config)
22-
httpConfig.isGzipEnabled should equal (false)
22+
httpConfig.isGzipEnabled should equal (true)
2323
}
2424
it("should return gzip buffer as 16Kb if not provided") {
2525
val config = ConfigFactory.parseMap(Map("port" -> 9115, "http.threads.min" -> 2, "http.threads.max" -> 4).asJava)

0 commit comments

Comments
 (0)