mirror of
https://github.com/foomo/contentserver.git
synced 2025-10-16 12:25:44 +00:00
history_test cleanup and formatting
This commit is contained in:
parent
bdb694b0ff
commit
a267dbe1ec
@ -18,8 +18,10 @@ func testHistory() *history {
|
||||
}
|
||||
|
||||
func TestHistoryCurrent(t *testing.T) {
|
||||
h := testHistory()
|
||||
test := []byte("test")
|
||||
var (
|
||||
h = testHistory()
|
||||
test = []byte("test")
|
||||
)
|
||||
h.add(test)
|
||||
current, err := h.getCurrent()
|
||||
if err != nil {
|
||||
@ -51,7 +53,6 @@ func TestHistoryOrder(t *testing.T) {
|
||||
h.varDir = "testdata/order"
|
||||
|
||||
files, err := h.getHistory()
|
||||
|
||||
if err != nil {
|
||||
t.Fatal("error not expected")
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user