Skip to content

Commit

Permalink
Update CI go version
Browse files Browse the repository at this point in the history
  • Loading branch information
arturalbov committed Mar 10, 2019
1 parent dc8a8fe commit a4d1738
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
language: go
sudo: false
os:
- osx
- linux
go:
- 1.11.x
- 1.12.x
env:
- GO111MODULE=on
install: true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![license](https://img.shields.io/github/license/arturalbov/atomicf.svg)](https://github.com/arturalbov/atomicf/blob/master/LICENSE)
[![contributors](https://img.shields.io/github/contributors/arturalbov/atomicf.svg)](https://github.com/arturalbov/atomicf/graphs/contributors)
[![contribute](https://img.shields.io/badge/contributions-welcome-orange.svg)](https://github.com/arturalbov/atomicf/graphs/contributors)
[![telegram](https://img.shields.io/badge/Telegram-%40arturalbov-blue.svg?style=social&logo=telegram)](https://t.me/username)
[![telegram](https://img.shields.io/badge/Telegram-%40arturalbov-blue.svg?style=social&logo=telegram)](https://t.me/arturalbov)

```$xslt
import "github.com/arturalbov/atomicf"
Expand Down
6 changes: 3 additions & 3 deletions file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestAtomicFile_CreateWrite(t *testing.T) {
defer os.RemoveAll(dir)

fileName := filepath.Join(dir, "atomic-test")
atomic, err := OpenFile(fileName, os.O_CREATE|os.O_SYNC|os.O_APPEND|os.O_WRONLY, 0666)
atomic, err := OpenFile(fileName, os.O_CREATE|os.O_SYNC|os.O_WRONLY, 0666)

if err != nil {
t.Errorf("error open atomic file %s: %v", fileName, err)
Expand Down Expand Up @@ -64,7 +64,7 @@ func TestAtomicFile_WriteAt(t *testing.T) {
t.Fatalf("error creating test atomic file: %v", err)
}

atomic, err := OpenFile(fileName, os.O_CREATE|os.O_SYNC|os.O_APPEND|os.O_WRONLY, 0666)
atomic, err := OpenFile(fileName, os.O_CREATE|os.O_SYNC|os.O_WRONLY, 0666)
if err != nil {
t.Errorf("error open atomic file %s: %v", fileName, err)
return
Expand Down Expand Up @@ -120,7 +120,7 @@ func TestAtomicFile_Recover(t *testing.T) {
t.Fatalf("error creating test atomic file: %v", err)
}

atomic, err := OpenFile(filepath.Join(dir, atomicFileName), os.O_CREATE|os.O_SYNC|os.O_APPEND|os.O_WRONLY, 0666)
atomic, err := OpenFile(filepath.Join(dir, atomicFileName), os.O_CREATE|os.O_SYNC|os.O_WRONLY, 0666)
if err != nil {
t.Errorf("error open atomic file %s: %v", logFileName, err)
return
Expand Down

0 comments on commit a4d1738

Please sign in to comment.