---
schema_version: "1"
id: ef3e176a37427dc78f6e6d6b3f53a27101ed0bd5973104d742f170d80e23fe76
title: MUnit Sleep Processor
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/munit/latest/sleep-processor.md
canonical_url: https://docs.mulesoft.com/munit/latest/sleep-processor
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 8d43ccdaee58ed0a2b1022904e7e574205a586eb0282c8051ef508ed0fdad79c
description: MuleSoft Documentation Site
release: "3.7"
latest: true
---
---
product: MUnit
version: 3.7
is-latest-version: true
---

# MUnit Sleep Processor

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

![logo acb active](/mulesoft/current/en-us/_/img/icons/anypoint-code-builder.svg "Anypoint Code Builder")Anypoint Code
Builder

![logo studio active](/mulesoft/current/en-us/_/img/icons/studio.svg "Anypoint Studio")Anypoint Studio

The MUnit Sleep processor pauses a MUnit test for a specified duration, simulating processing delays
in the flow under test. Use it to test time-dependent behavior or introduce controlled waits between
test steps.

```xml
<munit-tools:sleep time="100" timeUnit="MILLISECONDS"/>
```

`time`

Numerical value for the unit of time that your test waits before going to sleep.

`timeUnit`

The unit in which the `time` value is measured.

Possible values are:

- `MILLISECONDS` (default)

- `MICROSECONDS`

- `MINUTES`

- `NANOSECONDS`

- `SECONDS`

- `HOURS`
