mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 09:25:46 +03:00
The E2E test for periodic dispatch jobs has a `cron` trigger for once a minute. If the test happens to run at the top of the minute, it's possible for the forced dispatch to run from the test code, then the periodic timer triggers and leaves a running child job. This fails the test because it expects only a single job in the "dead" state. Make it so that the `cron` expression is implausible to run during our test window, and migrate the test off the old framework while we're at it.
6 lines
157 B
Go
6 lines
157 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
// Package periodic provides tests around periodic dispatch behavior
|
|
package periodic
|