Skip to content

Commit 5e77c5a

Browse files
committed
REMOVE: Just for test debugging
1 parent 85be1ef commit 5e77c5a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cmd/micro/micro_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,11 @@ func openFile(file string) {
156156
injectKey(tcell.KeyEnter, rune(tcell.KeyEnter), tcell.ModNone)
157157
}
158158

159-
func findBuffer(file string) *buffer.Buffer {
159+
func findBuffer(file string, t *testing.T) *buffer.Buffer {
160160
var buf *buffer.Buffer
161161
file, _ = filepath.Abs(file)
162162
for _, b := range buffer.OpenBuffers {
163+
t.Log(b.AbsPath)
163164
if b.AbsPath == file {
164165
buf = b
165166
}
@@ -203,7 +204,7 @@ func TestSimpleEdit(t *testing.T) {
203204

204205
openFile(file)
205206

206-
if findBuffer(file) == nil {
207+
if findBuffer(file, t) == nil {
207208
t.Fatalf("Could not find buffer %s", file)
208209
}
209210

@@ -235,7 +236,7 @@ func TestMouse(t *testing.T) {
235236

236237
openFile(file)
237238

238-
if findBuffer(file) == nil {
239+
if findBuffer(file, t) == nil {
239240
t.Fatalf("Could not find buffer %s", file)
240241
}
241242

@@ -296,7 +297,7 @@ func TestSearchAndReplace(t *testing.T) {
296297

297298
openFile(file)
298299

299-
if findBuffer(file) == nil {
300+
if findBuffer(file, t) == nil {
300301
t.Fatalf("Could not find buffer %s", file)
301302
}
302303

0 commit comments

Comments
 (0)