Skip to content

Commit

Permalink
add test to reproduce problem with write
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Apr 16, 2018
1 parent 39baaae commit d47673d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/ntp_client_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@
expect(subject.sync_interval).to eq 15
end

it "does not crash during write" do
subject.Write
it "following write succeed" do
puts subject.ntp_records.inspect
expect(Yast::Report).to_not receive(:Error)
expect(subject.Write).to eq true
end
end

Expand Down

0 comments on commit d47673d

Please sign in to comment.