Skip to content
Snippets Groups Projects
Select Git revision
  • 8da058c75f9e4524695be05e938e3751cccaf3c4
  • master default protected
  • fix/blockmode-expansion-test
  • fix/blockmode-expansion
  • use-official-metadata-endpoint
  • versioning-policy
  • v1.5.3
  • v1.5.2
  • v1.5.1
  • v1.5.0
  • v1.4.0
  • v1.3.2
  • v1.3.1
  • v1.3.0
  • v1.2.3
  • v1.2.2
  • v1.2.1
  • v1.2.0
  • v1.1.5
  • v1.1.4
  • v1.1.3
  • v1.1.2
  • v1.1.1
  • v1.1.0
  • v1.0.0
25 results

controller.go

Blame
  • Forked from GitHub Mirror / hetznercloud / csi-driver
    Source project has a limited visibility.
    config.spec.ts 630 B
    import { GlobalConfig } from '../../config/global';
    import { simpleGitConfig } from './config';
    
    describe('util/git/config', () => {
      beforeEach(() => {
        GlobalConfig.reset();
      });
    
      it('uses "close" events, ignores "exit" events from child processes', () => {
        expect(simpleGitConfig()).toEqual({
          completion: { onClose: true, onExit: false },
        });
      });
    
      it('uses timeout value from GlobalConfig', () => {
        GlobalConfig.set({ gitTimeout: 50000 });
        expect(simpleGitConfig()).toEqual({
          completion: { onClose: true, onExit: false },
          timeout: {
            block: 50000,
          },
        });
      });
    });