Skip to content

Commit 8b9cb0e

Browse files
author
Ashish
committed
reword the unit test spec for gzip default behavior
1 parent b5ff774 commit 8b9cb0e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import scala.collection.JavaConverters._
1111

1212
class HttpConfigSpec extends FunSpec with Matchers with EasyMockSugar {
1313
describe("Http configuration provider") {
14-
it("should return gzip enabled as true if provided and its value is 'true'") {
14+
it("should return gzip enabled as false if provided and its value is 'false'") {
1515
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)
1717
httpConfig.isGzipEnabled should equal (false)
1818
}
19-
it("should return gzip enabled as false if not provided") {
19+
it("should return gzip enabled as true 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)
2222
httpConfig.isGzipEnabled should equal (true)

0 commit comments

Comments
 (0)