Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Harness ¶
Harness is a test harness for all implementations of oplock.Service. The test consists of firing multiple goroutines which attempt to acquire a lock over a single operation "test". Each acquisitions timestamp is pushed down a channel. When five lock acquisitions have occurred the test ensures that it took at-least a specified duration to do so (interval * (iterations - 1)). Also that acquisitions occurred in ascending timestamp order with a delta between each tick of at-least the configured interval.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.