File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -433,8 +433,11 @@ func testBuffer(v *Nvim) func(*testing.T) {
433
433
return func (t * testing.T ) {
434
434
t .Run ("Nvim" , func (t * testing.T ) {
435
435
t .Run ("BufferName" , func (t * testing.T ) {
436
- cwd , _ := os .Getwd () // buffer name is full path
437
- wantBufName := filepath .Join (cwd , "/test_buffer" )
436
+ cwd , err := os .Getwd () // buffer name is full path
437
+ if err != nil {
438
+ t .Fatal (err )
439
+ }
440
+ wantBufName := filepath .Join (cwd , "test_buffer" )
438
441
if err := v .SetBufferName (Buffer (0 ), wantBufName ); err != nil {
439
442
t .Fatal (err )
440
443
}
@@ -689,8 +692,11 @@ func testBuffer(v *Nvim) func(*testing.T) {
689
692
t .Run ("BufferName" , func (t * testing.T ) {
690
693
b := v .NewBatch ()
691
694
692
- cwd , _ := os .Getwd () // buffer name is full path
693
- wantBufName := filepath .Join (cwd , "/test_buffer" )
695
+ cwd , err := os .Getwd () // buffer name is full path
696
+ if err != nil {
697
+ t .Fatal (err )
698
+ }
699
+ wantBufName := filepath .Join (cwd , "test_buffer" )
694
700
b .SetBufferName (Buffer (0 ), wantBufName )
695
701
if err := b .Execute (); err != nil {
696
702
t .Fatal (err )
You can’t perform that action at this time.
0 commit comments