Skip to content
Myr

Change temporary file names to fix flaky tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 8d3a302 · Browse files · 1 file+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−1 removed

  • tests:+4 added−1 removed

1 file+4 added−1 removed

modified:test/test_go.rb+4 added-1 removed
141 unmodified lines
142143 attr_reader :tmux144145 def tempname146 @temp_suffix ||= 0147 [TEMPNAME,147 caller_locations.map(&:label).find { |l| l =~ /^test_/ }].join '-'148 caller_locations.map(&:label).find { |l| l =~ /^test_/ },149 @temp_suffix].join '-'150 end151152 def setup153 ENV.delete 'FZF_DEFAULT_OPTS'
5 unmodified lines
159 wait { File.exists?(tempname) }160 File.read(tempname)161 ensure162 File.unlink tempname while File.exists?(tempname)163 @temp_suffix += 1164 tmux.prepare165 end166167 def fzf(*opts)
1173 unmodified lines