operator/src/test/java/oracle/kubernetes/operator/work/FiberTestSupport.java
public Packet runStepsToCompletion(Step step) {
    fiber = engine.createFiber();
    fiber.start(step, packet, completionCallback);

    // Wait for fiber to finish
    try {
      fiber.get();
    } catch (InterruptedException e) {
      throw new RuntimeException(e);
    }
    return packet;
  }
/**
   * Starts a unit-test fiber with the specified step and runs until the fiber is done.
   *
   * @param step the first step to run
   */
Starts a unit-test fiber with the specified step and runs until the fiber is done.
@param step the first step to run
Starts a unit - test fiber with the specified step and runs until the fiber is done . @param step the first step to run
public Packet runStepsToCompletion(Step step) {
    fiber = engine.createFiber();
    fiber.start(step, packet, completionCallback);
    try {
      fiber.get();
    } catch (InterruptedException e) {
      throw new RuntimeException(e);
    }
    return packet;
  }
public Packet runStepsToCompletion ( Step step ) { fiber = engine . createFiber ( ) ; fiber . start ( step , packet , completionCallback ) ; try { fiber . get ( ) ; } catch ( InterruptedException e ) { throw new RuntimeException ( e ) ; } return packet ; }
Starts a unit-test fiber with the specified step and runs until the fiber is done.
Starts a unit - test fiber with the specified step and runs until the fiber is done .
// Wait for fiber to finish