Skip to content

Commit

Permalink
bootloader: fix test w/ auto-generated copyright year
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Pires <[email protected]>
  • Loading branch information
miguelpires authored and mvo5 committed Jan 25, 2023
1 parent 7f1d30a commit 3000bf4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bootloader/assets/genasset/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
"os/exec"
"path/filepath"
"testing"
"time"

. "gopkg.in/check.v1"

Expand Down Expand Up @@ -91,7 +90,7 @@ func (s *generateAssetsTestSuite) TestSimpleAsset(c *C) {
const exp = `// -*- Mode: Go; indent-tabs-mode: t -*-
/*
* Copyright (C) %d Canonical Ltd
* Copyright (C) 2022 Canonical Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
Expand Down Expand Up @@ -119,7 +118,7 @@ func init() {
})
}
`
c.Check(string(data), Equals, fmt.Sprintf(exp, time.Now().Year(), filepath.Join(d, "in")))
c.Check(string(data), Equals, fmt.Sprintf(exp, filepath.Join(d, "in")))
}

func (s *generateAssetsTestSuite) TestGoFmtClean(c *C) {
Expand Down

0 comments on commit 3000bf4

Please sign in to comment.