# SPDX-License-Identifier: Apache-2.0

#######################################
# Pekko Testkit Reference Config File #
#######################################

# This is the reference config file that contains all the default settings.
# Make your edits/overrides in your application.conf.

pekko {
  test {
    # factor by which to scale timeouts during tests, e.g. to account for shared
    # build system load
    timefactor =  1.0

    # duration of EventFilter.intercept waits after the block is finished until
    # all required messages are received
    filter-leeway = 3s

    # duration to wait in expectMsg and friends outside of within() block
    # by default, will be dilated by the timefactor.
    single-expect-default = 3s

    # duration to wait in expectNoMessage by default,
    # will be dilated by the timefactor.
    expect-no-message-default = 100ms

    # The timeout that is added as an implicit by DefaultTimeout trait
    default-timeout = 5s

    calling-thread-dispatcher {
      type = org.apache.pekko.testkit.CallingThreadDispatcherConfigurator
    }
  }

  actor {

    serializers {
      java-test = "org.apache.pekko.testkit.TestJavaSerializer"
    }

    serialization-identifiers {
      "org.apache.pekko.testkit.TestJavaSerializer" = 23
    }

    serialization-bindings {
      "org.apache.pekko.testkit.JavaSerializable" = java-test
    }
  }
}
